<admintpl file="header" />
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{:U('com/index')}">{:L('COM_INDEX')}</a></li>
		<li><a href="{:U('com/add')}">{:L('COM_ADD')}</a></li>
	</ul>
	<form class="well form-search" method="post" action="{:U('com/index')}">
		企业名称：
		<input type="text" name="com_name" style="width: 100px;" value="{:I('request.com_name/s','')}" placeholder="请输入企业名称">
		地区:
		<admintpl file="city" />
		<input type="submit" class="btn btn-primary" value="搜索" />
		<a class="btn btn-danger" href="{:U('com/index')}">清空</a>
	</form>
	<form method="post" class="js-ajax-form">
		<table class="table table-hover table-bordered">
			<thead>
			<tr>
				<th align="center">ID</th>
				<th>企业名称</th>
				<th>企业地址</th>
				<th>所属行业</th>
				<th>企业规模</th>
				<th>创建时间</th>
				<th align="center">操作</th>
			</tr>
			</thead>
			<tbody>
			<foreach name="list" item="vo">
				<tr>
					<td align="center">{$vo.id}</td>
					<td>{$vo.com_name}</td>
					<td>
						{:F('cache_city')[$vo['province']]['name']}
						{:F('cache_city')[$vo['city']]['name']}
						{:F('cache_city')[$vo['district']]['name']}
					</td>
					<td>
						{:C('COM_SSHT')[$vo['trade']]['dict_text']}
					</td>
					<td>{:C('COM_GM')[$vo['scale']]['dict_text']}</td>
					<td>{$vo.created_time|date="Y-m-d",###}</td>
					<td align="center">
						<a href="{:U('com/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
						<a href="{:U('com/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
						<if condition="$vo['is_top'] eq 1 ">
							              <a href="{:U('com/is_top',array('id'=>$vo['id'],'is_top'=>0))}" class="js-ajax-dialog-btn" data-msg="确定取消置顶吗？">取消置顶</a>
						    <else /> 
						    			  <a href="{:U('com/is_top',array('id'=>$vo['id'],'is_top'=>1))}" class="js-ajax-dialog-btn" data-msg="确定置顶吗？">置顶</a>
						</if>
						<if condition="$vo['is_nojob'] eq 1 ">
							              <a href="{:U('com/is_nojob',array('id'=>$vo['id'],'is_nojob'=>0))}" class="js-ajax-dialog-btn" data-msg="确定取消停招吗？">取消停招</a>
						    <else /> 
						    			  <a href="{:U('com/is_nojob',array('id'=>$vo['id'],'is_nojob'=>1))}" class="js-ajax-dialog-btn" data-msg="确定停招吗？">停招</a>
						</if>
					</td>
				</tr>
			</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>